package com.qf.commons.base.result;

import lombok.Getter;

/**
 * author Ken
 * create_time 2022/11/21
 */
@Getter
public enum Codes {
    SUCC(200, "成功"),
    FAIL(500, "服务器异常！"),
    LOGIN_FAIL(401, "账号或者密码错误！"),
    PARAM_FAIL(402, "参数校验异常！"),
    CODE_ERROR(403, "验证码不正确！"),
    AUTH_ERROR(406, "请求必须认证才可以访问！"),
    SCORE_BUZU_ERROR(407, "用户积分不足"),
    RED_INFO_ERROR(408, "红包信息有误！"),
    RED_ROB_OVER(409, "红包已经抢完！"),
    RED_ROB_TIMEOUT(410, "红包已经过期！"),
    RED_ROB_CHONGFU(411, "已经抢过该红包！");

    private Integer code;
    private String msg;

    Codes(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}

